<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head>
<?php
if (isset($_REQUEST['upload'])) {
	$fileName=$_FILES['importdt']['name'];
	$tmpName=$_FILES['importdt']['tmp_name'];
	$fileSize=$_FILES['importdt']['size'];
	$fileType=$_FILES['importdt']['type'];
	$fp=fopen($tmpName,'r');
	$content=fread($fp,filesize($tmpName));
	$content=addslashes($content);
	fclose($fp);
	if (!get_magic_quotes_gpc()) {
		$fileName=addslashes($fileName);
	}
	move_uploaded_file($_FILES['importdt']['tmp_name'],"../database/".$_FILES['importdt']['name']);
	echo $fileType;
}
else
	echo "Loi roi";
?>